<?php
spl_autoload_register('autoload'); // 注册自动加载类的函数
function autoload($className) {
    $filename = './classes/' . $className . '.php';
    require_once $filename;
}

$s = new Student('lisi', 30, 20);
$s->printInfo();

$p = new Person('zhangsan', 20);
$p->printInfo();

$t = new Test();

$a = new Abc();
$a->test();